package com.itqf.dao;

import com.itqf.entity.Book;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/9/21
 * @Time: 上午11:35
 */
public class BookDao {

    static List<Book>  bookList = null;
    static{
        bookList = new ArrayList<>();
        for (int i = 0; i < 20; i++) {
            Book book = new Book();
            book.setAuthor("尼古拉斯.赵四");
            book.setName("隔壁老王和小丽的故事"+(i+1)+"集");
            book.setId(i+1);
            bookList.add(book);
        }
    }


    public static List<Book> getBookList() {
        return bookList;
    }
}
